﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using Data.Infrastructure;
using Domain.Entities;

namespace Data
{
    public class DbEntityContext : DbContext, IUnitOfWork
    {
        public DbEntityContext() : base("EOMS")
        {
            
        }
        public DbSet<Product> Products { get; set; }
        public virtual void Commit()
        {
            base.SaveChanges();
            
        }
    }
}
